package com.boot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@ComponentScan({"com.config","com.admin.controller","com.admin.service.impl","com.aliyun","com.listener","com.api.service.v1","com.api.action.v1"})
@MapperScan("com.admin.mapper")
@ImportResource("classpath:spring-transaction.xml")
@EnableSwagger2
@ServletComponentScan(basePackages = "com.listener")
public class MainBoot {
    public static void main(String[] args) {
        SpringApplication.run(MainBoot.class, args);
    }
}
